package cn.lefull.jpa.repository;
import cn.lefull.jpa.entity.Department;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
* @description: 
* @author: qijiang email:jiang1211@foxmail.com 
* @date: 2018-12-25 10:15:15 
*/
public interface DepartmentRepository extends JpaRepository<Department,Long>{

    @Query("select d from Department d ")
    List<Department> getAll();
}